package ltd.hanamaki.study.exception.demo01;

public class Demo01 {

    public static void main(String[] args) {

        Demo01 demo01 = new Demo01();
        /* 堆栈溢出错误 */
//        demo01.a();

        /* 算数 异常 */
        System.out.println(1 / 0);

    }

    public void a() {
        b();
    }

    private void b() {
        a();
    }
}
